export default {
  isNotEmpty(collection) {
    return !this.isEmpty(collection);
  },
  isEmpty(collection) {
    if (collection === null || collection === undefined) {
      return true;
    }
    if (Array.isArray(collection)) {
      return collection.length === 0;
    }
    return true;
  }
}